<template>
  <div class="TopTitleBar">
    <div class="height"></div>
    <header>
      <slot name="left"></slot>
      <slot name="middle"></slot>
      <slot name="right"></slot>
    </header>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" >
.TopTitleBar {
  .height {
    height: 50px;
  }

  header {
    background-image: linear-gradient(#16be5e, #13cf63);
    height: 50px;

    padding: 0 12px;
    box-sizing: border-box;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    min-width: 320px;
    max-width: 750px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    .middle {
      flex: 1;
    }

    .title {
      display: block;
      color: #fff;
      font-size: 16px;
      text-align: center;
      height: 40px;
      line-height: 40px;
    }
  }
}
</style>